package com.qf.pojo;

public class Cart {
    private Integer cart_id;
 private    Integer  u_id;
    private Integer  g_id ;
    private Integer  cart_num    ;
    private Integer  cart_price  ;
   private String cart_checked   ;
   private Goods goods;

    @Override
    public String toString() {
        return "Cart{" +
                "cart_id=" + cart_id +
                ", u_id=" + u_id +
                ", g_id=" + g_id +
                ", cart_num=" + cart_num +
                ", cart_price=" + cart_price +
                ", cart_checked='" + cart_checked + '\'' +
                ", goods=" + goods +
                '}';
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Cart(Integer cart_id, Integer u_id, Integer g_id, Integer cart_num, Integer cart_price, String cart_checked, Goods goods) {
        this.cart_id = cart_id;
        this.u_id = u_id;
        this.g_id = g_id;
        this.cart_num = cart_num;
        this.cart_price = cart_price;
        this.cart_checked = cart_checked;
        this.goods = goods;
    }

    public Cart(Integer cart_id, Integer u_id, Integer g_id, Integer cart_num, Integer cart_price, String cart_checked, User user) {
        this.cart_id = cart_id;
        this.u_id = u_id;
        this.g_id = g_id;
        this.cart_num = cart_num;
        this.cart_price = cart_price;
        this.cart_checked = cart_checked;

    }

    public Cart() {

    }

    public Cart(Integer cart_id, Integer u_id, Integer g_id, Integer cart_num, Integer cart_price, String cart_checked) {
        this.cart_id = cart_id;
        this.u_id = u_id;
        this.g_id = g_id;
        this.cart_num = cart_num;
        this.cart_price = cart_price;
        this.cart_checked = cart_checked;
    }

    public Integer getCart_id() {
        return cart_id;
    }

    public void setCart_id(Integer cart_id) {
        this.cart_id = cart_id;
    }

    public Integer getU_id() {
        return u_id;
    }

    public void setU_id(Integer u_id) {
        this.u_id = u_id;
    }

    public Integer getG_id() {
        return g_id;
    }

    public void setG_id(Integer g_id) {
        this.g_id = g_id;
    }

    public Integer getCart_num() {
        return cart_num;
    }

    public void setCart_num(Integer cart_num) {
        this.cart_num = cart_num;
    }

    public Integer getCart_price() {
        return cart_price;
    }

    public void setCart_price(Integer cart_price) {
        this.cart_price = cart_price;
    }

    public String getCart_checked() {
        return cart_checked;
    }

    public void setCart_checked(String cart_checked) {
        this.cart_checked = cart_checked;
    }
}
